https://glot.io/snippets/gibykewmfg/raw/main.lua